package com.ruoyi.chat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息记录对象 jy_chat_record
 *
 * @author ch
 * @date 2021-11-19
 */
public class ChatRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 门店id */
    @Excel(name = "门店id")
    private Long storeId;

    /** 门店员工id */
    @Excel(name = "门店员工id")
    private Long storeUserId;

    /** 门店员工名称 */
    @Excel(name = "门店员工名称")
    private String storeUserName;

    /** 用户id */
    @Excel(name = "用户id")
    private Long memberId;

    /** 是否发给门店的信息 */
    @Excel(name = "是否发给门店的信息")
    private String tostoreState;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private String msgType;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 是否已读 */
    @Excel(name = "是否已读")
    private String readStatus;

    /** 读取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "读取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readTime;
    /*
    查询参数
     */
    private Long csId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setStoreId(Long storeId)
    {
        this.storeId = storeId;
    }

    public Long getStoreId()
    {
        return storeId;
    }
    public void setStoreUserId(Long storeUserId)
    {
        this.storeUserId = storeUserId;
    }

    public Long getStoreUserId()
    {
        return storeUserId;
    }
    public void setStoreUserName(String storeUserName)
    {
        this.storeUserName = storeUserName;
    }

    public String getStoreUserName()
    {
        return storeUserName;
    }
    public void setMemberId(Long memberId)
    {
        this.memberId = memberId;
    }

    public Long getMemberId()
    {
        return memberId;
    }
    public void setTostoreState(String tostoreState)
    {
        this.tostoreState = tostoreState;
    }

    public String getTostoreState()
    {
        return tostoreState;
    }
    public void setMsgType(String msgType)
    {
        this.msgType = msgType;
    }

    public String getMsgType()
    {
        return msgType;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setReadStatus(String readStatus)
    {
        this.readStatus = readStatus;
    }

    public String getReadStatus()
    {
        return readStatus;
    }
    public void setReadTime(Date readTime)
    {
        this.readTime = readTime;
    }

    public Date getReadTime()
    {
        return readTime;
    }

    public Long getCsId() {
        return csId;
    }

    public void setCsId(Long csId) {
        this.csId = csId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("storeId", getStoreId())
            .append("storeUserId", getStoreUserId())
            .append("storeUserName", getStoreUserName())
            .append("memberId", getMemberId())
            .append("tostoreState", getTostoreState())
            .append("msgType", getMsgType())
            .append("content", getContent())
            .append("readStatus", getReadStatus())
            .append("readTime", getReadTime())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
